package lagou.util;
/*
* 实现手机卡类
* */
public class Card {
    public String card_type;   // 卡类型
    public byte card_id;       // 卡号
    public String user_name;   // 用户名
    public String password;    // 密码
    public byte balance;       // 账户余额
    public byte time;          //通话时长
    public byte flow;          //上网流量

    public void setCard_type(String card_type) {
        this.card_type = card_type;
    }

    public void setCard_id(byte card_id) {
        this.card_id = card_id;
    }

    public void setTime(byte time) {
        this.time = time;
    }

    public void setBalance(byte balance) {
        this.balance = balance;
    }

    public void setFlow(byte flow) {
        this.flow = flow;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public void show(){
        System.out.println("尊敬的"+user_name+",您手机号"+card_type+"当前余额为："+balance);
    }
    public Card(String card_type, byte card_id, String user_name, String password,byte balance,byte time,byte flow){
        setCard_type(card_type);
        setCard_id(card_id);
        setUser_name(user_name);
        setPassword(password);
        setBalance(balance);
        setTime(time);
        setFlow(flow);
    }
}
